#include "C0Curve.h"

namespace Curves
{
	C0Curve::C0Curve(void)
	{
	}


	C0Curve::~C0Curve(void)
	{
	}

	void C0Curve::addBezierVertex( const QVector3D & v)
	{
		bezierPoints.push_back(MyVertex(v));
		deBorePoints = bezierC2ToDeboreC2(bezierPoints);

		refresGpuData(bezierPoints);
	}

	void C0Curve::addDeBoreVertex( const QVector3D & v)
	{
		// TODO not implemented
	}

	void C0Curve::removeBezierVertex(int indx)
	{
		bezierPoints.remove(indx);
		refresGpuData(bezierPoints);
	}
}